package com.zh.web.domain.media.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zh.web.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "文章实体")
@TableName("ls_article")
public class Article extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("副标题")
    private String subTitle;
    @ApiModelProperty("作者")
    private String author;
    @ApiModelProperty("简介")
    private String summary;
    @ApiModelProperty("封面")
    private String cover;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("创作类型 由字典选取")
    private String creationType;
    @ApiModelProperty("来源地址 非原创时提供")
    private String source;
    @ApiModelProperty("内容类型")
    private String contentType;
    @ApiModelProperty("法条类型")
    private String lawType;

}

